@import '~common/less/mixin.less';
@import '~common/less/variable.less';

.player {
  .normal-player {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    background: #222;
    z-index: 150;

    &.normal-enter {
      opacity: 0;

      .top {
        transform: translate3d(0, -100%, 0);
      }

      .bottom {
        transform: translate3d(0, 100%, 0);
      }
    }

    &.normal-leave-to {
      opacity: 0;

      .top {
        transform: translate3d(0, -100%, 0);
      }

      .bottom {
        transform: translate3d(0, 100%, 0);
      }
    }

    &.normal-enter-active {
      transition: all 0.4s;

      .top, .bottom {
        transition: all 0.4s cubic-bezier(0.34, 0.3, 1, 0.13);
      }
    }

    &.normal-leave-active {
      transition: all 0.4s;

      .top, .bottom {
        transition: all 0.4s cubic-bezier(0.34, 0.3, 1, 0.13);
      }
    }

    .background {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 100%;
      filter: blur(25px);
      z-index: -1;

      .img {
        height: 100%;
        width: 100%;
      }
    }

    .top {
      position: relative;
      margin-bottom: 20px;

      .album {
        text-align: left;
        line-height: 40px;
        font-size: 16px;
        width: 70%;
        margin: 0 auto;
        .no-wrap;
      }

      .singer {
        font-size: 12px;
        padding-left: 60px;
      }

      .back {
        position: absolute;
        top: 0;
        left: 6px;

        .iconshouqi {
          display: block;
          font-size: 22px;
          padding: 10px;
        }
      }
    }

    .middle {
      position: fixed;
      top: 80px;
      bottom: 170px;
      width: 100%;
      white-space: nowrap;

      .middle-r {
        width: 100%;
        display: inline-block;
        height: 100%;
        vertical-align: top;
        overflow: hidden;

        .lyric-wrapper {
          text-align: center;
          width: 80%;
          margin: 0 auto;
          overflow: hidden;

          .lyric-item {
            font-size: 14px;
            line-height: 32px;
            color: hsla(0, 0%, 100%, 0.5);

            &.current {
              color: #fff;
              font-weight: 600;
            }
          }
        }
      }

      .middle-l {
        width: 100%;
        display: inline-block;
        vertical-align: top;
        height: 0;
        padding-top: 80%;
        position: relative;

        .playing-lyric {
          text-align: center;
          margin: 60px auto 0;
          width: 80%;
          overflow: hidden;

          .txt {
            font-size: 14px;
            font-weight: 600;
            line-height: 20px;
            color: #ffffff;
          }
        }

        .cd-wrapper {
          position: absolute;
          left: 10%;
          top: 33px;
          width: 80%;
          height: 100%;

          .baseCls {
            width: 60px;
            height: 144px;
            position: absolute;
            top: -65px;
            left: 135px;
            transform-origin: 0 0;
            transition: transform 0.5s ease;

            &.neeldeCls {
              transform: rotate(-8deg);
            }

            &.rateCls {
              transform: rotate(-40deg);
            }

            .neeldeImg {
              width: 100%;
              height: 100%;
            }
          }

          .cd {
            width: 100%;
            height: 100%;
            // border 10px solid rgba(255,255,255,0.1)
            box-sizing: border-box;
            border-radius: 50%;
            background-image: url('./disc.png');
            background-repeat: no-repeat;
            background-size: cover;
            position: relative;

            &.cd_play {
              animation: rotate 20s linear infinite;
            }

            &.cd_pause {
              animation-play-state: paused;
            }

            .currenImg {
              width: 60%;
              height: 60%;
              box-sizing: border-box;
              border-radius: 50%;
              position: absolute;
              top: 50%;
              left: 50%;
              transform: translate(-50%, -50%);
            }
          }
        }
      }
    }

    .bottom {
      position: absolute;
      bottom: 30px;
      width: 100%;

      .customer-handle {
        height: 40px;
        width: 100%;
        line-height: 40px;
        display: flex;
        justify-content: space-around;
        box-sizing: border-box;
        padding: 0 10%;

        .iconshoucangdianjihou {
          font-size: 25px;
          color: #c0c1bf;

          &.icon-favorite {
            color: red;
          }
        }

        .iconxiazai {
          font-size: 25px;
          color: #c0c1bf;
        }

        .iconpinglun {
          font-size: 25px;
          color: #c0c1bf;
          position: relative;

          .tag {
            position: absolute;
            font-size: 10px;
            top: -13px;
            right: -22px;
          }
        }
      }

      .dot-wrapper {
        text-align: center;
        font-size: 0;

        .dot {
          width: 8px;
          height: 8px;
          border-radius: 50%;
          display: inline-block;
          background-color: rgba(255, 255, 255, 0.5);
          margin: 0 4px;
          vertical-align: cnter;

          &.active {
            background-color: hsla(0, 0%, 100%, 0.5);
            width: 20px;
            border-radius: 5px;
          }
        }
      }

      .progress-wrapper {
        display: flex;
        width: 80%;
        margin: 0 auto;
        justify-content: space-between;
        padding: 10px;
        align-items: center;
        font-size: 12px;

        .progress-bar-wrapper {
          flex: 1;

          .progress-bar {
            height: 30px;

            .bar-inner {
              height: 4px;
              margin: 0 5px;
              background: rgba(0, 0, 0, 0.3);
              position: relative;
              top: 10px;

              .progress {
                position: absolute;
                top: 0;
                height: 100%;
              }

              .btn-wrapper {
                position: absolute;
                top: -13px;
                left: -7px;
                width: 30px;
                height: 30px;

                .btn {
                  position: relative;
                  width: 16px;
                  height: 16px;
                  border-radius: 50%;
                  background: #ffcd32;
                  box-sizing: border-box;
                  border: 3px solid #fff;
                  left: 7px;
                  top: 7px;
                }
              }
            }
          }
        }
      }

      .operateors {
        display: flex;
        align-items: center;

        .icon {
          flex: 1;
          color: #c0c1bf;

          span {
            font-size: 30px;
          }
        }

        .i_right {
          text-align: right;
        }

        .i_left {
          text-align: left;

          .icon-favorite {
            color: red;
          }
        }

        .i_center {
          text-align: center;

          .iconbofang3 {
            font-size: 40px;
          }

          .iconbofang2 {
            font-size: 40px;
          }
        }
      }
    }
  }

  .comment {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 220;
    background-color: @color-background;

    .back {
      height: 50px;
      line-height: 50px;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 10;
      background-color: #764343;
      width: 100%;

      .iconyoujiantou {
        color: @color-theme;
        margin-left: 20px;
        font-size: 20px;
      }

      .back-title-sub {
        font-size: 16px;
      }
    }

    .review {
      position: fixed;
      top: 50px;
      bottom: 0;
      width: 100%;
    }
  }

  .mini-player {
    position: fixed;
    left: 0;
    bottom: 0;
    height: 56px;
    width: 100%;
    background: #fafafa;
    z-index: 151;
    display: flex;
    align-items: center;
    border-top: 1px solid #e0e0e0;

    &.mini-enter {
      opacity: 0;
    }

    &.mini-leave-to {
      opacity: 0;
    }

    &.mini-enter-active {
      transition: all 0.4s;
    }

    &.mini-leave-active {
      transition: all 0.4s;
    }

    .icon {
      flex: 0 0 40px;
      width: 40px;
      padding: 0 10px 0 20px;
      .img-icon {
        border-radius: 50%;
        width: 40px;
        height: 40px;

        &.cd_play {
          animation: rotate 20s linear infinite;
        }

        &.cd_pause {
          animation-play-state: paused;
        }
      }
    }

    .text {
      flex: 1;
      line-height: 20px;

      .name {
        font-size: 14px;
        width: 200px;
        color: #222222;
        .no-wrap;
      }

      .desc {
        font-size: 12px;
        color:#848484;
      }
    }

    .control {
      flex: 0 0 25px;
      width: 25px;
      margin-right: 15px;

      .circle {
        width: 25px !important;
        height: 25px !important;
        color: #616161;
      }

      .icon-mini {
        position: absolute;
        top: 50%;
        left: 50%;
       
        transform: translate(-6px,-6px);
        text-align: center;
        &.iconbofang4 {
          font-size: 12px;
          text-align: center;
          color: red;
          width: 12px;
          height: 12px;
          display: block;
        }
        &.iconzanting {
          font-size: 12px;
          text-align: center;
          width: 12px;
          height: 12px;
          display: block;
        }
      }
    }

    .list {
      flex: 0 0 30px;
      width: 30px;
      padding-right: 6px;
      .iconbofangliebiao {
        font-size: 24px;
        color: #4c4c4c;
      }
    }
  }

  @keyframes rotate {
    0% {
      transform: rotate(0);
    }

    100% {
      transform: rotate(360deg);
    }
  }
}